package com.wangzd.community.exception;

/**
 * @author wangzd
 * @create 2021-08-24 10:44
 */
public enum CustomizeErrorCode implements ICustomizeErrorCode {
    QUESTION_NOT_FOUND(2001,"你找的问题不存在了"),
    TARGET_PARAM_NOT_FOUND(2002,"未选中任何问题或评论"),
    NO_LOGIN(2003,"当前操作需要登录，请登录后重试"),
    SYS_ERROR(2004,"服务器冒烟了，请等待其爆炸"),
    TYPE_COMMENT_WRONG(2005,"评论类型错误或是不存在"),
    COMMENT_NOT_FOUND(2006,"回复的评论不在了"),
    CONTENT_IS_EMPTY(2007,"输入内容不能为空"),
    READ_NOTIFICATION_FAIL(2008,"这是读取他人信息"),
    NOTIFICATION_NOT_FOUND(2009,"消息不在了"),
    FILE_UPLOAD_FAIL(2010,"图片上传失败"),
    ;

    private String message;
    private Integer code;

    CustomizeErrorCode(Integer code, String message)
    {
        this.code = code;
        this.message = message;
    }


    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

}
